﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCP.Infrastructure.Common.Specification;

namespace NCP.Recruiting.Domain.Aggregates.Departments
{
    public static class DepartmentSpecifications
    {
        public static Specification<Department> GetByCompanyId(Guid id)
        {
            return new DirectSpecification<Department>(x => x.CompanyId.Equals(id) && !x.Deleted);
        }
    }
}
